package com.example.zjx8969.myapplication.banner;

import androidx.room.Embedded;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import androidx.annotation.NonNull;

@Entity(tableName = "home_banner")
public class BannerBean {
    @NonNull
    public String slotName;
    @NonNull
    @PrimaryKey
    public int id;
    public String imageUrl;
    public String imageMd5;
    public String actionUrl;
    /*public String clientVer;*/
    public String eventName;
    public String sponsor;
    public String type;
    public long startTime;
    public long endTime;
    public int localImpression;
    public int localClick;
    public String condition;
    public String mimeType;
    public String uploadBrandCode;
    public float pollingTime;//轮训时间
    @Embedded
    public BannerExtra extraInfo;

    @Override
    public String toString() {
        return "BannerBean{" +
                "slotName='" + slotName + '\'' +
                ", id=" + id +
                ", imageUrl='" + imageUrl + '\'' +
                '}';
    }
}
